package com.longe.netty.transferFiles.domain;

/**
 * 文件分片数据
 */
public class TransferData {

    //客户端文件地址
    private String fileUrl;
    //文件名称
    private String fileName;
    //开始位置
    private Integer beginPosition;
    //结束位置
    private Integer endPosition;
    //文件字节：在实际应用中可以使用非对称加密，以保证传输信息安全
    private byte[] bytes;
    //文件传输进度｛0开始、1中间、2结尾、3完成｝
    private Integer fileTransferStatus;

    public TransferData(){}

    public TransferData(Integer fileTransferStatus) {
        this.fileTransferStatus = fileTransferStatus;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getBeginPosition() {
        return beginPosition;
    }

    public void setBeginPosition(Integer beginPosition) {
        this.beginPosition = beginPosition;
    }

    public Integer getEndPosition() {
        return endPosition;
    }

    public void setEndPosition(Integer endPosition) {
        this.endPosition = endPosition;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }

    public Integer getFileTransferStatus() {
        return fileTransferStatus;
    }

    public void setFileTransferStatus(Integer fileTransferStatus) {
        this.fileTransferStatus = fileTransferStatus;
    }
}